//
//  UIImageView+Category.m
//  QuXiang
//
//  Created by Duncan on 2020/6/23.
//  Copyright © 2020 NanHuaiZi. All rights reserved.
//

#import "UIImageView+Category.h"

@implementation UIImageView (Category)

- (void)ts_loadUrlString:(NSString *)urlString {
    [self sd_setImageWithURL:[NSURL URLWithString:urlString] placeholderImage:@"base_placeholder_image".image];
}

- (void)ts_loadHeadUrlString:(NSString *)urlString {
    [self sd_setImageWithURL:[NSURL URLWithString:urlString] placeholderImage:@"base_head_normal".image];
}

/// 加载网络图片
- (void)ts_LoadImageUrlString:(NSString *)urlString placeholderImage:(UIImage *)placeholderImage {
    [self sd_setImageWithURL:[NSURL URLWithString:urlString] placeholderImage:placeholderImage ?: @"base_placeholder_image".image];
}

@end
